package Demo.demo5;

public class Feeder {
    String name;

    public double feedAnimal(Animal animal, Food food, int amount) {
        animal.eat(food.getFoodName());
        return food.getFoodPrice()*amount;
    }

    public double washAnimal(Animal animal) {
        double washPrice=0;
        if (animal.getHair()) washPrice = 200;
        else washPrice = 100;
        return washPrice;
    }

}
